package com.yc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zwei
 * @create 2024-08-09 19:54
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ac = new AnnotationConfigApplicationContext(JmsConfig.class);
        MessageProducer mp = (MessageProducer) ac.getBean("messageProducer");
        mp.sendMessage("Hello, World!");
    }
}
